//
//  NSString+FixFormatError.m
//  EPTool
//
//  Created by guoshiqing on 2018/4/13.
//  Copyright © 2018年 云数动能科技. All rights reserved.
//

#import "NSString+FixFormatError.h"
#import <UIKit/UIKit.h>

@implementation NSString (FixFormatError)

+ (NSString*)stringWithInteger:(NSInteger)integer
{
    return [NSNumber numberWithInteger:integer].stringValue;
}

+ (NSString*)stringWithUInteger:(NSUInteger)integer
{
    return [NSNumber numberWithUnsignedInteger:integer].stringValue;
}

+ (NSString*)stringWithFloat:(CGFloat)f
{
    return [NSNumber numberWithFloat:f].stringValue;
}

+ (NSString*)stringWithInt:(int)number
{
    return [NSNumber numberWithInt:number].stringValue;
}

- (NSString*)stringValue
{
    return self.description;
}
- (BOOL)isEqualToNumber:(NSNumber*)number
{
    NSString *temp = [number stringValue];
    return [self isEqualToString:temp];
}
- (id)objectForKey:(NSString*)key
{
    return self;
}
@end
